﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Interfaces
{
    public enum TailleVetement
    {
        s,
        m,
        l,
        xl,
        xxl
    };

    class Program
    {
        static void Main(string[] args)
        {
            var dvd = new Film { Id = 1, Nom = "Dvd", Prix = 2, Duree = 60, Nombre = 10 };
            var blueRay = new Film { Id = 2, Nom = "Blue Ray", Prix = 3, Duree = 120, Nombre = 20 };
            var tShirt = new Vetement { Id = 3, Nom = "T-Shirt", Prix = 5, taille = TailleVetement.l, Nombre = 50 };
            var pantalon = new Article { Id = 4, Nom = "Pantalon", Prix = 7, Nombre = 0 };
            var cassette = new Article { Id = 5, Nom = "Cassette", Prix = 2, Nombre = 5 };
            var chaussure = new Article { Id = 6, Nom = "Chaussure", Prix = 5, Nombre = 15 };
        }
    }

    public class Film : IArticle
    {
        public int Duree { get; set; }
        public bool Promo { get; set; }
    }

    public class Vetement : IArticle 
    {
        public TailleVetement taille { get; set; }
        public bool Promo { get; set; }
    }

    public class Chaussures : IArticle
    {
        public int Taille { get; set; }
    }

    public class Article : IArticle
    {        
    }

    public class IArticle
    {
        public int Id { get; set;}
        public string Nom { get; set; }
        public int Prix { get; set; }
        public int Nombre { get; set; }
    }

}
